package model;

public class Ticket {
    private static int count = 1;
    private int id;
    private int sessionId;
    private int row;
    private int col;
    private String username; // who bought
    private double price;
    private boolean refunded;

    public Ticket(int sessionId, int row, int col, String username, double price) {
        this.id = count++;
        this.sessionId = sessionId;
        this.row = row;
        this.col = col;
        this.username = username;
        this.price = price;
        this.refunded = false;
    }

    public int getId() { return id; }
    public int getSessionId() { return sessionId; }
    public int getRow() { return row; }
    public int getCol() { return col; }
    public String getUsername() { return username; }
    public double getPrice() { return price; }
    public boolean isRefunded() { return refunded; }
    public void setRefunded(boolean refunded) { this.refunded = refunded; }
}